<?php
class Menu{
	
	private $html;
	
	public function Menu($title, $array){
		$this->html = '<ul id="menu_'.$title.'">';
		foreach($array as $link => $link_title){
			$this->html .= '<li><a href="'.$link.'" class="ajax_request">'.$link_title.'</a></li>';
		}
		$this->html .= '</ul>';
	
			
	}
	
	public function getHtml(){
		return $this->html;
	}
}
?>
